package com.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@EqualsAndHashCode(callSuper = false)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExportEntity {

    @Excel(name = "序号", needMerge = false)
    private Integer serialNum;

    @Excel(name = "姓\n名", needMerge = true)
    private String name;

    @Excel(name = "性别", needMerge = true, replace = {"男_true", "女_false"}, width = 15.0)
    private Boolean sex;

    @Excel(name = "电话", needMerge = true)
    private String phone;

    @Excel(name = "购买时间", format = "yyyy-MM-dd HH:mm:ss", needMerge = true, width = 20.0)
    private Date buyTime;

    @Excel(name = "住址", needMerge = true, width = 15.0)
    private String address;

    @Excel(name = "水果", groupName = "订单类别", width = 15.0)
    private String fruitsName;

    @Excel(name = "蔬菜", groupName = "订单类别", width = 15.0)
    private String vegetableName;

}
